package com.gxcc3.ygps.system.service.impl;

import com.gxcc3.ygps.common.core.domain.entity.SysIotStorage;
import com.gxcc3.ygps.common.core.domain.entity.SysVideoMonitor;
import com.gxcc3.ygps.system.mapper.SysVideoMonitorMapper;
import com.gxcc3.ygps.system.service.ISysVideoMonitorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysVideoMonitorServiceImpl implements ISysVideoMonitorService {


    @Resource
    SysVideoMonitorMapper monitorMapper;


    /**
     * 查询监控设备列表
     * @param monitor 参数
     * @return 结果
     */
    @Override
    public List<SysIotStorage> selectMonitorList(SysVideoMonitor monitor) {
        return monitorMapper.selectMonitorList(monitor);
    }


    /**
     * 新增监控设备
     * @param monitor 参数
     * @return 结果
     */
    @Override
    public int insertMonitor(SysVideoMonitor monitor) {
        return monitorMapper.insertMonitor(monitor);
    }


    /**
     * 查询监控信息
     * @param id 主键
     * @return 结果
     */
    @Override
    public SysVideoMonitor selectMonitorById(Long id) {
        return monitorMapper.selectMonitorById(id);
    }


    /**
     * 修改监控设备
     * @param monitor 参数
     * @return 结果
     */
    @Override
    public int updateMonitor(SysVideoMonitor monitor) {
        return monitorMapper.updateMonitor(monitor);
    }

    @Override
    public int delMonitor(Long[] ids) {
        return monitorMapper.delMonitor(ids);
    }
}
